﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Threading;
using WpfSingleInstanceByEventWaitHandle;
using RiskMan.Config;
using RiskMan.Views.Dialogs;
using System.Diagnostics;

namespace RiskMan
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            try
            {
                WpfSingleInstance.Make();
                base.OnStartup(e);
            }
            catch (Exception ex)
            {
                new DialogOkCancel(ex.ToString(), "OnStartup");
            }
        }
    }
}